package day38.edu;

import java.util.ArrayList;

// Created: 08/10/2025, ChangJiang Ru
public class SubOrder2<E> extends Order{
    E e;

    public SubOrder2(E e, Object t, int orderId, String name)
    {
        this.e = e;
        this.t = t;
        this.orderId = orderId;
        this.name = name;
    }

    public <E> ArrayList<E> copyFromArray(E[] arr)
    {
        ArrayList<E> list = new ArrayList<E>();

        for(E e : arr)
        {
            list.add(e);
        }

        return list;
    }
}
